package com.mmd.admin.model.pojo.request;


import com.mmd.base.annotation.valid.group.ValidGroup;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.List;

@Data
@ApiModel("CRM服务商身份编辑参数")
public class CrmAgencyIdentityEditRequest {

    @ApiModelProperty("服务商id")
    @NotNull(message = "服务商id不能为空", groups = {ValidGroup.Update.class})
    private Long agencyIdentityId;

    @ApiModelProperty("服务商名称")
    @NotBlank(message = "服务商名称不能为空", groups = {ValidGroup.Update.class})
    private String name;

    @ApiModelProperty("服务商代理配置")
    @NotEmpty(message = "服务商配置最小1条数据", groups = {ValidGroup.Update.class})
    private List<CrmEnsureMoneySetEditRequeset> list;
}
